MainBar: Properly limit the lower value of the sample range