fix small bug in link formatting