Added a line to flush listener map