A state lawmaker is making good on a promise to repair a flawed system that permits aging and ailing convicted sex offenders to quietly enter long-term care facilities — often unbeknownst to patients and staff — where some easily are finding their next victims.