Fix Planningdemo usage of State