fixed time unit bug