fixed animations so that they won't run until the previous animation is finished