fixed hasReceived bug