Fix QHashMap assertion bug