2006 kia rio

I picked up my kia from a body shop that replaced doors and fenders after about 6 blocks car started lurching and missing ,I thought maybe low on gas ,limped to a station and when I opened gas cover I discovered the gas cap wrapped in plastic and taped ,I tore that off and put in gas without trying to start it up and then it started right up no problem any more ,I believe the cap is a vented cap could that have been the problem?