fix callback definition
render Sine wave