Fixed onload problem