Fix a bug where one quote could get stuck in the pending queue