fixed gui bugg