Re #1352 Fixing profile=null issue.