Fixed onload event.