fixed bugs without connect