Fix link processing in headers