Apparently settings.get behaves stupidly
Fix exception. I should probably cherry-pick this into master