fix-#515: sparse fields
Merge pull request #803 from DavidBord/fix-515

fix-#515: sparse fields