Link creation bug