Fix for pending accounting bug

This fixes the bug where the "too many pending" error was being returned despite there not being too many open requests.