Fixed an embedding bug