Fix crash in settings due to API change (andre_)

Reported and tested by andre_ on IRC, thanks!