Fix a lot of bugs, make /chat command working.