Fixed logging fail.