fix player initialization bug