Fix issue with params in states.