Fixed bug with Mongo not working at all