JS fix for time persistent