Fixed some gui errors