fixed a problem with paralell animation frames