Fixed bugs in adding player