fixed a logging error.