fix -1 FPS on firefox