GCP-7320 - fixed js error