Added check if minShim < maxShim.