Handler in networklistener bug fix