Make sure onload is called