Fixed a bit of logging