fixed the oninit setting bug in dataexplorer