fix error on initial insert
Merge pull request #6 from pbrekelmans/master

fix error on initial insert