issue-6 fixed error with changing parameters.