Fixed resize issue.