Setting link type to a default value of 0 if not set