fix connect on mongoid