Fix FormatException.
Code cleanup.