Fixed the UnboundLocalError

Disabled the processing of pending operations