fixed a sed regex issue