fix js error on expired session