Fix animation problems.