fix some case issues