fix case reassignment