fix wrong samples per channel