Fixed saving issue with blank files