bug in trim_callees