Bug fixes

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