Lawmakers consider bill to help homeowners avoid foreclosure