Bug correction: set and put for variables