Fixed bug deleting the mark editing widget when the screen was cleared