fix file listener bug