fixed logging issue that would otherwise crash the client. Fixes #68