Fixed resize error.