Fix attachment link type