fix duplication for embed