fix setiing twice problem in audioplayer