fix go regexp errors