Fix for linked packages and search the entire trace.