Fix issue on firefox 27 on OSX