Fixed firefox animation bug