fix link creation