Flashing, fastening, framing - you name it, it needed to be fixed
Unfortunately, the new deck didn't meet code; in fact, it looked like someone had been trying to build a deck that violated every typical code requirement, starting at the foundation and continuing up from there.