Fix allocation of persistentState values