fix bug of no Disconnect callback