Fix bug that occured if matched_num was over 1 digit long