Minor correction to filtering step