fixed a log message that was in the wrong place