Fixed logging error