fix some bug for update package