Fix setting state of bar-chart preview pages