Little fix in disconnect method