fixed the minimum size problem