fix bug in editDraft