The company is hurting from rising mortgage rates for residential real estate loans.