fix window_onload option bug