fix embedding