fix case problems