fix some bugs in the player
add loader before play