correct syntax errors in models