Fixed another bug with link resolution