File listener fixed