Fix packages api example.