Making sure correct alias is selected for pagination