Updated goals controller to fix flash