fix deadlink bug