Fixes regression with regex.