wm: fix creation of link