fix comparator for StorageMapDB