Fixed an erronous var reference that was causing an assert.