fix regex rule