Fix broken refactor

Message argument was called as msg in the function body.
Merge pull request #1 from carrieje/patch-1

[lightswitch] Fix broken refactor