Fix link errors in header and footer