fix embed state