Fixed delete bug for goals