Fix npe with playerstates.