min_width and max_width fixes