added sample-rate fix