Fix packages state.