regex type fix