The economy is not in a recession at point D. Then, in later periods, firm will continue to lower inflation as their expectations of inflation adjust down (contracts (like employment, materials, and goods contracts) will be negotiated at lower inflation rates as the continue to expire) and they will eventually return to profit maximization where output equals potential output (shifts AS and moves D back to A).