Fixed bug when saving drafts

The bug where a new tab was created when a draft was saved is fixed.