Fix settings loading