Fixed App Crash when port set to nothing