Fix bug in arc pop up, disposing of editor pop up too early