Fix trace printfs