I believe this fixes insertDocument