Fix home page event bug