fixed logging error