Fixing settings loading bug