Bug for null exception in hashmap rmeoved.