Loc

Fixed nasty bug causing premature exit from matching attempt.