fix setter for variables