More sanity checks

pAI interface is weird, let's make sure we're always in a valid state