Fixes error in PlayerData assigning