Fixed some debug log issues