fix bug of filtering upper case extensions