Correctly check package state.