Fix cls with mongodb adapter