fixed updating of param state