Create for chart pie profiles, and correction of some errors