Fixed error in default code embed and extract