fixed r_gm