Fixed the open in external editor menu to work correctly