fixed issue with logging