Fixed window resizing issue.