correct syntax errors hidden on Mac OSX