Deal with missing msg variable