Fixed bug in mongo cube