Fix non thread safe pendingOpcode