fix for clear pending ops script

[merge]