Fix syntax errors with map loading