fixed listening bug