fix query for selecting task

remove double selected task