Fixed bug that made non-recursive find() not return correct results