Fixed improper handling of filter value 0, closes #602