fixed a listener error log bug