Fixed bug when bad sample rate is selected.