fixed error in goals controller