Fixed breaking when encounter files with no type