Settings: fix NumberFormatException

Change-Id: If6a08b96ea487af527e2e8ebb2c6288826ba547c