fixed performance bug inside features regular expression