Fix value calculation when slides the max handle closes to the min handle