Fix the problem that listening port doesn't display when run app