Workaround for getSetting not working always