Fix bug with regex