Fix #mode link tag being removed when built