file: fix when content is empty