Fixed error when invalid syntax.