fixed a bug with firefox 31 in osx