Fixed wront time interval bug