fixed a bug in line.equals