fix crash when sorting after removing player