Fixed bug in connectors