fixed segfault when Rmsd is used with incorrect input types