Fix embed replacing.