fix generation of frontendmodel