Syntax fixes in views