Fixed a variable assignment bug.