fix index find method