[transition] Fix bug on firefox