Fixed a bug where syntax error would not display if input field isn't empty