Problems don't fix themselves, you had a problem and I'm guessing you still have it after replacing the faulty sensor. I would have the car checked again in an effort to trace the cause of the problem ...