Use custom method to insert component to avoid WebKit bugs