fixing a bug in match crystallography