fixed playingarray undefined