Fixed a bug with SR region limits