fixed selection and offset