Fix oscillator re-intialize bug.