Fix readFilter and writeFilter options