Fix window.onload conflict