Fix to gui