fixing models generator