Fix stange bug in SyntaxError handling