Fixed a NPE in listener start