Fixed small bug related to filter callback