Fix syntax errors so migration will run