fix reg matched error.