Fixed syntax errors in models files