fixed a logging mistake