Fixed bugs with removing regions