fix case insensitive issue with flex