fix port offset affected area and dependency issue