Fix error on firefox