fix 'one connection' bug