fix #1812 filter samples according to analyzed data