Revert "Settings: Fix possible illegal argument exception"

This reverts commit e908c72be01abd18ef093bd3363e0cb05ec7f6b8.