Think this addresses #550, however there's another case where the profile detail directive causes an error even though it's not being shown