fixed insertAfter