fix link crash error