bugfix: xmin:xmax didn't reset fitregion in selectregion code