Fixed gui errors