Fix for external port problem - added new call if district is not configured