fix case details error (haven't run locally due to ES error)