fixed bug with transition on firefox