fix sorting not working when switching region