fix the variable assignment