Fix for port snapping defect

Fix for port snapping defect