Fixed a bug where a syntax error showed as a memory error.