Fix IP adress check