minor fix to logging