fixing package model generator