fixes #407, issues with empty profile, v2.3.5