fixed some types for filter