fix bug HD function with more than one player on same page