Fix settings loading bug