fixed init of params