Fixed animation after undoing.