Settings: fix NumberFormatException

Change-Id: Icad22d751b9865309fdc2dd799f9c845a170fc55