Fix bug in regexp