Adapted to new ped_parser
Finished hotfix adapt_to_ped.