fix small error in IP address validating