Fixed modifying an input variable.