Fix bug regular expressions engine