Fix error with firefox