Fix warning printouts