fixed random event bug