Fix an issue where msg was not being used in Any()