You should give your variables unique names anyway.

Making a script use variables like %title and %name is not a good idea. You should use %yourscriptname.name and %yourscriptname.title