controller - bug fix

improperly scoped variable.