Some log fixes