fix reversed links