Fixed syntax errors

Fixes #2