fix mode value expressed in seconds instead of milliseconds