Fix for firefox 17.0.1