Fixing leafConnector not defined bug.