bug fix in expiration time for a device.