Fix locale selector bug that crashes the app