Corrected gui bugs