min value for border, fix display