Fixes issue with selected regions