fixing graphing listener bug