Incorrectly adding Namespace to Unattached Properties.

Maybe this fix could also be done by using the IsAttached from a few lines higher