Post-fixed query reduce logic bug.