fixed logging errors