Plot error fix