Fix dependency detection for messages that are received differently

Only the patterns need to be updated. Races will be checked anyway.