Fixed embedded code bug