Fix for syntax error unexpected kEND, expecting