Fixes incorrect retrieval of setting values