fix sine generator