fixed bug that was unknowingly introduced for OSX