fixed bugs in add_template_paths method of Page class