Why is the embed function not working?