fixed saving of resource goal