Fix bug in regex to enable ajp