add missing }, do not init max_norm_res