Fix wrong port validation