Fixed issues with initialization of parameters.