packages_model  bug fixed