fix creating wrappers link with alias, fix #2228