Fixed gui errors.