fix saving of factors
Merge branch 'master' of https://github.com/digitalabs/Fieldbook