Fix breakage for empty files