fix js error when container not found