Fixed gui problem