fix for not saving if blank file