Fixes in RegionStates for using hashmaps instead of iterations