fix link states