fix parsing of PCS file