fix fencepost error in player indexing