fix(stateResolver): order parameter correctly