fix bug in checking invalid address