fix for listen port validation