protect hashmap from removing not found hash