Handle the OutOfBound error

FIXED: the OutOfBound err when the address look up returns 0.