fixed bug in find w