fix animation bug (introduced in latest Chrome)