Fixed bug in connector