fixed bug in embed.rb