fixes bug with animation in Opera