Do not crash on too big pop
Fix sed parsing with dynamic reg exps