- fixed bug in find function