fixed duplicating goals bug