mongoDB complex type query fix