Fixed double registerPlayer bug