Fixed issue with undefined callback in find