Deal with empty fields for ranking