Fix consecutive reference link bug