controller - bug fix

vars object was setting sdomain, not domain.