fix for edit doc