rmsd fix