Fixed bug,
invalid assumption that only 3 file_types were being checked.