Implement createLink manually.
 - fixed link bugs. #482, #428, #419, #416, #316.