fixed bug in mongodb store