bug fix in player-model.js