Fixed bug in saving non-md content