Fix package format conversion