Bugfix: catching syntax errors