fix onLoad