Fix isResolved and isRejected