diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index 59a206b4d1f42cdff7407f9732f7d3dea9871333..0d7a8678a19c66d938fb75c171ad4e62a397be15 100755
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -1300,12 +1300,7 @@ void LLScriptEdCore::clearExperiences()
 
 LLUUID LLScriptEdCore::getSelectedExperience()const
 {
-	LLSD value = mExperiences->getSelectedValue();
-	if(value.has(LLExperienceCache::EXPERIENCE_ID))
-	{
-		return value[LLExperienceCache::EXPERIENCE_ID].asUUID();
-	}
-	return LLUUID::null;
+	return (LLUUID)mExperiences->getSelectedValue();
 }
 
 void LLScriptEdCore::setAssociatedExperience( const LLUUID& experience_id )