fix player exit