fixes min and max size issue

min and max size weren’t set if declared.
fixes max_width issue

max_width needed to be set to be assigned.