fixed bug when publishing a goal from the interface