fix animation problems