Fixed firefox animation issue