fixing linktype to link type