fix drafts code