fix goal saving bug