fixed animation problems