Fix mongo object transaction