Use correct var in replacement msg