fix check of link code length.