PmTable2: fixed selection and sort column bugs