fixed bug for bitwise operations in filters