corrected bug overlapping graph