fix firefox movement animation