fixed logging copy/paste