Fix a bug which doesn't allow to search by object's private fields.