fixed $stateParams issue