fixed embed_core so it properly injects the css