malfunction indicator light on 2001 Hyundai Sonata

i will be driving along and the car all of a sudden will buck and the engine light will come on. it does not happen all the time maybe twice a week. i just had a new charcoal canister put in as it would not take gas

Asked by for the 2001 Hyundai Sonata