Fixed a GUI bug