tracing/filters: fix bug in copy_pred()