Fixed problems with createlinks