fixed connection error

wrong scope with required file