Bug fixes

- Fix some major bugs that causes to server crash.
- Implement passing message as just a string instead of an object if user locale is not important.