Fix bug when goals are not sent from API