Fixed loading tokens at the end of the file.