Fixed an unreported bug in assigning variables.