fixed a GUI bug