fix case decode