Fixed some resizing issues.