Only runs 40 Degrees advanced

was the compression test good ?if so cam is not twisted you would have different reading because of late valve opening events. run a leak down test on engine to check for slightly bent valves. I DID PULL A FERD ENGINE THAT HAD A MISS ON LAST 2 CYLINDERS THE CAM SNAPED BUT RAN JUST FINE.