fix searching when includes is set to nil