fix a type line and link