fixed connections bug