Fix pack.register example