fixing video minimize bug in firefox