error fix for orders without plans.