stateParams fix