gitignore fix and setPublic only on insert.
Merge branch 'hotfix/2.0.2.1'