fixed a bug in client side when initializing player