Fixed task leave animation when completed in editor.