Fixed exception caused by log printing. %s placeholder was forgotten.