fixed #906.  Gui was failing to remove module from position map, causing subsequent uncaught exceptions