Fix deprecated calls to $msg.get()