fixing linktypes