Fixed bug with find() method