Fix bug when template not in the draft