deleteLastPending fixed