fixed that it connected twice