Fix settings crash