I replaced a blown rear head gasket, and since I was replacing the timing belt, I didn't make any marks on anything. Figured I'd just line up the factory marks upon reassembly. What an IDIOT move that turned out to be!

I actually removed both heads and tanked them. So, all cams removed.
Upon reassembly, the front cam gears aligned with the single dot pointing to each other. The knock pin on the end is straight up, and mark on pulley aligns with mark on #3 timing cover. No problem.
The rear is messed up. When the double dots are aligned on the cam gears, the knock pin on the end is pretty much straight down. So the sprocket is upside down, with the mark on the sprocket about 180 degrees off from the mark on the cover. If I rotate the cams so the sprocket/mark is up, the dots on the cam gears are way off.
The weird thing is that aligning the double dots on the gears appears to be correct. This makes the service bolt hole to hold the subgear at the top. If it was in any other pos. you couldn't get the service bolt in. Also, I believe the cam lobes are in correct pos., will have to check that. I can't remember how it came off, didn't take pictures or make marks. Did I mention I am an IDIOT for doing this?
So, how could I get it backwards like this? The sprocket bolt was very tight, big cheater bar...obviously the cam is not twisted, but could the end rotate somehow? What marks do I go by, the double dots on the cam gears, or the notch on the sprocket and timing cover?
This is a '99 1MZ in a Sienna, 60K miles. Please help as I need to get this back on the road so my wife will give me back my Cruiser!