Fixed a bug where a syntax error was being thrown