Trying to fix syntax errors