Fix compatibility fix genmymodel