Did you replace the camshaft sensor as well, or just the crankshaft? I had bad crankshaft sensor, and when I replaced it, it drove okay for a while then I had problems again. I replaced the camshaft sensor and it solved the problem. I've been told it's usually good to replace them both at the same time. Not sure if it really matters, but it did the trick for me.