fix bug in pre-embed() initialization