fixed another small issue, but the current version does not support concurrentmodification for the database