Fix datatype filtering.