Fixing bug in connector