Fix time span display issue