Bugfix for the new embedder script