fix main link on generated