Fix syntax error in view page