An ugly hack fix for OSX (at least 10.9.2)