Fixed a bug where the 'Edit Player' window would not disappear