Fixed Gui errors