caught a bug in plotSelectedLeafs.m