fixed graphing bug