fixed minimizing in layout