Avoid javascript error