Generally, if you'd like to refinance your first mortgage without having to subsequently refinance your HELOC you'll need what's called``lien subordination . ''
You'll have to ask your HELOC lender to make its lien junior to your refinanced first mortgage.