fix null foreach when parameters is not set
Add setters