insertbefore fix