Compatibility fix for embed