Handle no models

It's a little bit cracra, but I don't know how to detect autogenerate