fixed bug involving player id of -1