minor fix in selection and projection