[jmdb, nim] Fixing a bug