fix bug in chunk filter