fix bug: when one or less profile reduce to one profile from array