Logging fix
Bugfix