ifpending repaired again. Hope it works as intended now.
Merge pull request #443 from sasiflo/master

ifpending repaired again. Hope it works as intended now.