fixed core query so single record results do not cause invocation of
failure callback