Fix UI resizing issues.