#135 fixed bug in pendingCheck