Hello, I have a 1998 subaru legacy gt wagon 2.5 auto. When taking off from a stop it has a hesitation like the engine tries to almost die out then the rpms comes up and it's fine. It does not do this all the time just here and there. Sometimes the check engine light comes on and when it does it and reads knock sensor. What do i have to replace to get it to stop doing this?