fix js error alert