Fix if-clause style in filters