Fixed logging mistake