Added extra check on .ped columns (thankyou C.Baes!)