Deleted pool also from the pools map, and fixed a bug