Fixed logging error.