rename variable in state-decorator.js for consistency.