Rebuilt motor just started and over heats

I just got done rebuilding my 340 and it gets hot very fast. I beleive my problem is in the distrbutor drive gear not being set correctly. Forgive me for not being exactly clear here I am just a weekend so called mechanic. On top dead center I have the slots lined up with the the crank but the distributor does not line up with the #1 Piston.

Thanks TOM