fixed error in MaptoolGui