Fixed the Message dispatching system. Initialized all the members for all class in constructors to avoid undefined behavior