Avoids javascript error