fixing link bugs