Correct syntax error in variable assignment