Fixed error in msg module

The msg module methods were not defined properly
This error was fixed in the commit