fix bug in initialization of trajectory times