Fix marshal data corrupted documents