Bug#4827 Fix error when delete profile
Merge pull request #119 from trungquan/Bug#4827

Bug#4827 Fix error when delete profile.