Fix onLoad events error.