Fix genration who does not work in web