Fix error thrown on player login