Fixed mode when saving IDs
Merge pull request #182 from cchan5/master

Fixed mode when saving IDs