fixed bug with adding new goal