fix pending method
Merge pull request #276 from jettify/fix-pending

fix pending method