fixed bug with time vector