Fixed issue with empty mode