bugfix the name resolver when starting from application.