diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index 0d7a8678a19c66d938fb75c171ad4e62a397be15..7c1b83dfa9d2447a66836c54be809fe17e6aba46 100755
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -1300,7 +1300,7 @@ void LLScriptEdCore::clearExperiences()
 
 LLUUID LLScriptEdCore::getSelectedExperience()const
 {
-	return (LLUUID)mExperiences->getSelectedValue();
+	return mExperiences->getSelectedValue().asUUID();
 }
 
 void LLScriptEdCore::setAssociatedExperience( const LLUUID& experience_id )