Fix for firefox 21