fix case insensitive matching