Fixed some logging