Fixed bug with region selection only working once