fixed a variable name error in pages ,which caused templates cannot work