Fixed the osc callback function