fixed #2 no error if no fields to index