Ensure player id is set