Fixes some syntax errors