First you fix the problem then you look for the culprit and administer punishment if it's needed at that point.