fix minimal packages code