bugfix for log