Shouldn't that last sentence be"That just occured to me"?
That that adds another that that keeps that idea going.