save documment bug