fixed #attached property issue on deferred elements