Fix load event bug