Fixed chat logging

fixes #147