Fix problems after all checks have finished

As the fix methods generally modify the `tokens` array, for safety lets ensure that they run after all the problems have been found.