fix min/max filters