Fixed bug that allowed to select lower row than minimum