fixed matching bet bug