Fixed bug in osc demo