fixes sm links