Fix registering package