fixed some of the guis errors