fix hash remove range bug