fix bug when supplying invalid region selector