fixed error with firefox