Fixed pivot resize issue.