The P1345 code points to a Crankshaft Position Sensor & Camshaft Position Sensor signal correlation issue. Not sure if you've already checked both sensors over, but the two sensors work together with the ECM to control engine timing. These sensors will be in sync if everything is working...