fixing search by id