fix lowercase indexing of uppercase files