Fixing weird mistakes in GUI