fix syntax error in views