fixed error when deleting draft