Fixed incompatible type w/ switch to object query.