fix region from being set to None