fixed bug of pressing button when player not joined