Fix listeners not called if server started