fix input reference on BaseController