Fixing undefined player