Fixed issue with empty mode value.