Fixed build & connect error