set the interval first, then unlock
weird. add missing lock initialization