Avoids js error