Fix bug on profile config