Fix minor bug which only affected log messages.