fixed issue of not saving regions