Ed: check if there is no error when writing the .nav
Merge pull request #475 from kinnou02/check_write

Ed: check if there is no error when writing the .nav