Fix NumberFormatException in settings.