bug fix for handling case insensitive statistics