Connect method fix