Fix js error on case messages display