Fix bug where plan animation continues in execute mode.