fixed a bug for empty internal files.