Fix crash when sorting servers