Fix statedata.js