Fixed resizing issues.