fix sign problem with time block