Correct bugs when creating and saving new document can not save status
successfully.