fix bug about sourcing profile