fixed bug in connected method