[BUGFIX] Incorrect calculation for pending IndexQueue items