fix an issue with oscillator, quick fix, but it works