fix bug in find