Fixed the resize issue.