class graph.line attribute error corrected