fix the scenario when no fields are given