Selecting target and time from eventlist does not work correctly