GCP-7584 fix js error