minor fix on find_object