added missing semicolon. Fixed invalid method call used to add a new message.