corrected bug for log arbitrary goals