fixed reg stringify