Bugfix: logging