Fixed port attributes loading bug.