Fix wrong page number getting selected in page numberpicker.