fix onload problem