Fix weird issue with firefox