Fix the crash bug when inputed an invalid address