Toyota refers to coil D as also No 4. The link below shows cylinder location.
Thus the correct coil was misplaced.
If you still have the diagnostic sheet from the dealer determine if it has any trouble codes listed. Such as P0354.
Often auto parts store will read codes for free or loan out a code reader. Attempt to get the codes read again.
The link below has trouble code info the coils.
It could be the dealer misdiagnosed the problem. Without the original codes the dealer found or new codes that may be now stored it is difficult to trouble shoot. It code be another problem besides the coil.