Fixed my stupid (zero-indexed) bug in PQ classes