fixed reverse match issue