fix bug in assigning ftime and event vectors