fix the error when edit
add case detail