[ENHANCE] Change the method to write in project config related to profile