fix endlist, remove link type from endlist