Updated the ode_event.m but need to test if is OK to simulate