Fixed bugs with read filtering.