Fix inject error in embed