fixed OSC allocation bug