attempt to fix bug in goals.