Fix reversmatch problem