fixes syntax error in view