time now must be positive. And small bug fixed