fix onInit and onLoad handler calls